package com.koron.bean.base;

/**
 * @author jzp
 * @since 2021/11/2
 */
public class Constants {

    public static final class Flag {
        public static final Integer YES = 1;
        public static final Integer NO = 0;
    }

    /**
     * 设备树的默认根节点编码（不显示的节点）
     */
    public static final String DEVICE_TREE_ROOT_CODE = "02000000000001";

    public static final class Color {
        // 按期的，绿色
        public static final String GREEN = "#95F204";

        // 即将超期的，黄色
        public static final String YELLOW = "#F59A23";

        // 已超期的，红色
        public static final String RED = "#D9001B";
    }

    /**
     * 日期，以秒为单位
     */
    public static final class Date {
        // 秒
        public static final long SECOND = 1;

        // 分钟
        public static final long MINUTE = 60;

        // 小时
        public static final long HOUR = 3600;

        // 日
        public static final long DAY = 3600 * 24;

        // 周
        public static final long WEEK = 3600 * 24 * 7;

    }

    public static class DeviceParameter {
        // 安装位置
        public static final String LOCATION = "0001000";
        // 设备管理单位
        public static final String MANAGER_ORG = "0005000";
    }

}
